<?php
require_once 'init-ise.php';
# extract some test objects from db
try {
	$id = 2;
	print "Fetching person [$id]";
	$person = PersonQuery::create()->findPk($id);
	print "Fetched:\n".$person."\n";
	print "Updating name to be captain debug\n";
	$person->setFirstname("captain")->setLastname("Debug")->save();
	print "Updated\n";
} catch (Exception $e) {
	print $e->getMessage();
}
?>